package org.example.demo2minio.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName MinioProperties
 * @Description TODO
 * @Author Kx
 * @Date 2025/9/15 15:20
 * @Version 1.0
 */

/**
 * 将 application.yml 中以 minio 为前缀的配置项自动映射到 MinioProperties 类的字段中
*/
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {
    private String host = "http://192.168.1.100:9000"; // 服务器地址
    private String account = "minioadmin"; // 账号
    private String password = "minioadmin"; // 密码
    private String bucketName = "myapp"; // 存储桶名称

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
